﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001273 RID: 4723
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SummonPetScRsp : IMessage<SummonPetScRsp>, IMessage, IEquatable<SummonPetScRsp>, IDeepCloneable<SummonPetScRsp>, IBufferMessage
	{
		// Token: 0x17003BE4 RID: 15332
		// (get) Token: 0x0600D3E0 RID: 54240 RVA: 0x0023A939 File Offset: 0x00238B39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SummonPetScRsp> Parser
		{
			get
			{
				return SummonPetScRsp._parser;
			}
		}

		// Token: 0x17003BE5 RID: 15333
		// (get) Token: 0x0600D3E1 RID: 54241 RVA: 0x0023A940 File Offset: 0x00238B40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SummonPetScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003BE6 RID: 15334
		// (get) Token: 0x0600D3E2 RID: 54242 RVA: 0x0023A952 File Offset: 0x00238B52
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SummonPetScRsp.Descriptor;
			}
		}

		// Token: 0x0600D3E3 RID: 54243 RVA: 0x0023A959 File Offset: 0x00238B59
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SummonPetScRsp()
		{
		}

		// Token: 0x0600D3E4 RID: 54244 RVA: 0x0023A961 File Offset: 0x00238B61
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SummonPetScRsp(SummonPetScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.curPetId_ = other.curPetId_;
			this.selectPetId_ = other.selectPetId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D3E5 RID: 54245 RVA: 0x0023A99E File Offset: 0x00238B9E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SummonPetScRsp Clone()
		{
			return new SummonPetScRsp(this);
		}

		// Token: 0x17003BE7 RID: 15335
		// (get) Token: 0x0600D3E6 RID: 54246 RVA: 0x0023A9A6 File Offset: 0x00238BA6
		// (set) Token: 0x0600D3E7 RID: 54247 RVA: 0x0023A9AE File Offset: 0x00238BAE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003BE8 RID: 15336
		// (get) Token: 0x0600D3E8 RID: 54248 RVA: 0x0023A9B7 File Offset: 0x00238BB7
		// (set) Token: 0x0600D3E9 RID: 54249 RVA: 0x0023A9BF File Offset: 0x00238BBF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurPetId
		{
			get
			{
				return this.curPetId_;
			}
			set
			{
				this.curPetId_ = value;
			}
		}

		// Token: 0x17003BE9 RID: 15337
		// (get) Token: 0x0600D3EA RID: 54250 RVA: 0x0023A9C8 File Offset: 0x00238BC8
		// (set) Token: 0x0600D3EB RID: 54251 RVA: 0x0023A9D0 File Offset: 0x00238BD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SelectPetId
		{
			get
			{
				return this.selectPetId_;
			}
			set
			{
				this.selectPetId_ = value;
			}
		}

		// Token: 0x0600D3EC RID: 54252 RVA: 0x0023A9D9 File Offset: 0x00238BD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SummonPetScRsp);
		}

		// Token: 0x0600D3ED RID: 54253 RVA: 0x0023A9E8 File Offset: 0x00238BE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SummonPetScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.CurPetId == other.CurPetId && this.SelectPetId == other.SelectPetId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D3EE RID: 54254 RVA: 0x0023AA44 File Offset: 0x00238C44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.CurPetId != 0U)
			{
				num ^= this.CurPetId.GetHashCode();
			}
			if (this.SelectPetId != 0U)
			{
				num ^= this.SelectPetId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D3EF RID: 54255 RVA: 0x0023AAB5 File Offset: 0x00238CB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D3F0 RID: 54256 RVA: 0x0023AABD File Offset: 0x00238CBD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D3F1 RID: 54257 RVA: 0x0023AAC8 File Offset: 0x00238CC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SelectPetId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.SelectPetId);
			}
			if (this.CurPetId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.CurPetId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D3F2 RID: 54258 RVA: 0x0023AB40 File Offset: 0x00238D40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.CurPetId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurPetId);
			}
			if (this.SelectPetId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SelectPetId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D3F3 RID: 54259 RVA: 0x0023ABB0 File Offset: 0x00238DB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SummonPetScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.CurPetId != 0U)
			{
				this.CurPetId = other.CurPetId;
			}
			if (other.SelectPetId != 0U)
			{
				this.SelectPetId = other.SelectPetId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D3F4 RID: 54260 RVA: 0x0023AC14 File Offset: 0x00238E14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D3F5 RID: 54261 RVA: 0x0023AC20 File Offset: 0x00238E20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 80U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.CurPetId = input.ReadUInt32();
					}
				}
				else
				{
					this.SelectPetId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040054D6 RID: 21718
		private static readonly MessageParser<SummonPetScRsp> _parser = new MessageParser<SummonPetScRsp>(() => new SummonPetScRsp());

		// Token: 0x040054D7 RID: 21719
		private UnknownFieldSet _unknownFields;

		// Token: 0x040054D8 RID: 21720
		public const int RetcodeFieldNumber = 14;

		// Token: 0x040054D9 RID: 21721
		private uint retcode_;

		// Token: 0x040054DA RID: 21722
		public const int CurPetIdFieldNumber = 10;

		// Token: 0x040054DB RID: 21723
		private uint curPetId_;

		// Token: 0x040054DC RID: 21724
		public const int SelectPetIdFieldNumber = 6;

		// Token: 0x040054DD RID: 21725
		private uint selectPetId_;
	}
}
